package com.zl.tby.model;

import com.zl.tby.core.base.bean.TbyBaseBean;
import lombok.Data;
import org.noear.wood.annotation.Exclude;
import org.noear.wood.annotation.Table;

import java.time.LocalDateTime;

/**
 * 智能箱历史数据
 * @author changpeng
 * @version 1.0
 * @since 2025-10-14
 */
@Data
@Table("tby_smart_box_history")
public class TbySmartBoxHistory extends TbyBaseBean {
    /**设备id*/
    private Long deviceSn;
    /**创建年份*/
    private String createYear;
    /**创建月份*/
    private String createMonth;
    /**创建日期*/
    private String createDate;
    /**设备名称*/
    private String name;
    /**高温度*/
    private String temperatureHigh;
    /**低温度*/
    private String temperatureLow;
    /**温度单位*/
    private String temperatureUnit;
    /**高湿度*/
    private String humidityHigh;
    /**低湿度*/
    private String humidityLow;
    /**湿度单位*/
    private String humidityUnit;
    /**高电压*/
    private String voltageHigh;
    /**低电压*/
    private String voltageLow;
    /**电压单位*/
    private String voltageUnit;
    /**高电流*/
    private String currentHigh;
    /**低电流*/
    private String currentLow;
    /**电流单位*/
    private String currentUnit;

    @Exclude
    private String createDateFormat;

    public static TbySmartBoxHistory createEmpty(String createDateFormat) {
        TbySmartBoxHistory data = new TbySmartBoxHistory();
        data.setCreateDateFormat(createDateFormat);
        return data;
    }
}
